/*
   Splash Screen Plugin for Miranda-IM (www.miranda-im.org)
   (c) 2004-2005 nullbie, (c) 2005-2007 Thief

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

   File name      : $URL: http://svn.mirandaim.ru/mainrepo/splashscreen/trunk/src/headers.h $
   Revision       : $Rev: 557 $
   Last change on : $Date: 2007-03-11 22:44:24 +0300 (Sun, 11 Mar 2007) $
   Last change by : $Author: Thief $
*/

#ifndef HEADERS_H
#define HEADERS_H

#define _WIN32_WINNT 0x0500
#define WINVER 0x0400
#define AC_SRC_ALPHA  0x01
#define OEMRESOURCE
#define _CRT_SECURE_NO_DEPRECATE

#include <windows.h>
#include <m_win2k.h>
#include <stdio.h>
#include <commctrl.h>
#include <time.h>

// Internal defines
#define SPLASH_CLASS "MirandaSplash"
#define WM_LOADED (WM_USER + 10)
#define BuildDate __DATE__" "__TIME__

struct SPLASHOPTS
{
	byte active;
	byte playsnd;
	byte loopsnd;
	byte runonce;
	byte fadein;
	byte fadeout;
	byte inheritGS;
	byte random;
	byte showversion;
	byte fontsize;
	int showtime;
	int fosteps;
	int fisteps;
};

extern SPLASHOPTS options;

// png2dib interface
typedef BOOL ( *pfnConvertPng2dib )( char*, size_t, BITMAPINFOHEADER** );
extern pfnConvertPng2dib png2dibConvertor;

// Common headers
#include "../res/version.h"
#include "../res/resource.h"
#include "bitmap_funcs.h"
#include "m_splash.h"

// Miranda API headers
#include <m_newpluginapi.h>
#include <m_database.h>
#include <m_options.h>
#include <m_utils.h>
#include <m_langpack.h>
#include <m_system.h>
#include <m_png.h>
#include "m_updater.h"
//#include "m_folders.h"

#ifdef _DEBUG
#include <m_clist.h>
#include <m_skin.h>
#include <m_popup.h>
#include "debug.h"
#endif

#endif //HEADERS_H